package com.oa.common.identity;

/**
 * @author cuichao
 */
@FunctionalInterface
public interface IdGenerate<T> {
    /**
     * 根据key来获取ID
     * key是否能为null 则为子类实现判断
     * @param key
     * @return
     * @throws IdGenSystemException
     */
    T getId(String key) throws IdGenSystemException;


}
